using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_ICItemCustomMap : EntityTypeConfiguration<t_ICItemCustom>
    {
        public t_ICItemCustomMap()
        {
            // Primary Key
            this.HasKey(t => t.FItemID);

            // Properties
            this.Property(t => t.FItemID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.F_103)
                .HasMaxLength(10);

            this.Property(t => t.F_104)
                .HasMaxLength(50);

            this.Property(t => t.F_105)
                .HasMaxLength(200);

            this.Property(t => t.F_106)
                .HasMaxLength(10);

            this.Property(t => t.F_108)
                .HasMaxLength(10);

            this.Property(t => t.F_109)
                .HasMaxLength(50);

            this.Property(t => t.F_119)
                .HasMaxLength(20);

            this.Property(t => t.F_121)
                .HasMaxLength(20);

            this.Property(t => t.F_120)
                .HasMaxLength(20);

            this.Property(t => t.F_118)
                .HasMaxLength(200);

            this.Property(t => t.F_122)
                .HasMaxLength(80);

            this.Property(t => t.F_123)
                .HasMaxLength(20);

            this.Property(t => t.F_124)
                .HasMaxLength(254);

            this.Property(t => t.F_125)
                .HasMaxLength(254);

            this.Property(t => t.F_126)
                .HasMaxLength(999);

            this.Property(t => t.F_127)
                .HasMaxLength(999);

            this.Property(t => t.F_128)
                .HasMaxLength(999);

            this.Property(t => t.F_129)
                .HasMaxLength(999);

            this.Property(t => t.F_130)
                .HasMaxLength(50);

            this.Property(t => t.F_131)
                .HasMaxLength(10);

            this.Property(t => t.F_132)
                .HasMaxLength(10);

            this.Property(t => t.F_139)
                .HasMaxLength(20);

            this.Property(t => t.F_140)
                .HasMaxLength(150);

            // Table & Column Mappings
            this.ToTable("t_ICItemCustom");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.F_101).HasColumnName("F_101");
            this.Property(t => t.F_102).HasColumnName("F_102");
            this.Property(t => t.F_103).HasColumnName("F_103");
            this.Property(t => t.F_104).HasColumnName("F_104");
            this.Property(t => t.F_105).HasColumnName("F_105");
            this.Property(t => t.F_106).HasColumnName("F_106");
            this.Property(t => t.F_107).HasColumnName("F_107");
            this.Property(t => t.F_108).HasColumnName("F_108");
            this.Property(t => t.F_109).HasColumnName("F_109");
            this.Property(t => t.F_110).HasColumnName("F_110");
            this.Property(t => t.F_111).HasColumnName("F_111");
            this.Property(t => t.F_112).HasColumnName("F_112");
            this.Property(t => t.F_113).HasColumnName("F_113");
            this.Property(t => t.F_114).HasColumnName("F_114");
            this.Property(t => t.F_115).HasColumnName("F_115");
            this.Property(t => t.F_116).HasColumnName("F_116");
            this.Property(t => t.F_117).HasColumnName("F_117");
            this.Property(t => t.F_119).HasColumnName("F_119");
            this.Property(t => t.F_121).HasColumnName("F_121");
            this.Property(t => t.F_120).HasColumnName("F_120");
            this.Property(t => t.F_118).HasColumnName("F_118");
            this.Property(t => t.F_122).HasColumnName("F_122");
            this.Property(t => t.F_123).HasColumnName("F_123");
            this.Property(t => t.F_124).HasColumnName("F_124");
            this.Property(t => t.F_125).HasColumnName("F_125");
            this.Property(t => t.F_126).HasColumnName("F_126");
            this.Property(t => t.F_127).HasColumnName("F_127");
            this.Property(t => t.F_128).HasColumnName("F_128");
            this.Property(t => t.F_129).HasColumnName("F_129");
            this.Property(t => t.F_130).HasColumnName("F_130");
            this.Property(t => t.F_131).HasColumnName("F_131");
            this.Property(t => t.F_132).HasColumnName("F_132");
            this.Property(t => t.F_133).HasColumnName("F_133");
            this.Property(t => t.F_134).HasColumnName("F_134");
            this.Property(t => t.F_135).HasColumnName("F_135");
            this.Property(t => t.F_136).HasColumnName("F_136");
            this.Property(t => t.F_137).HasColumnName("F_137");
            this.Property(t => t.F_138).HasColumnName("F_138");
            this.Property(t => t.F_139).HasColumnName("F_139");
            this.Property(t => t.F_140).HasColumnName("F_140");
        }
    }
}
